<?php
//debug($prpData);
//$groupFileds
if($prpData){
?>   
 <div id="" class="list-table" style="border: 1px solid #B2B2B2; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px;">
      <table width="100%">
        <thead style="background-color: #1C1C1C; font-size: 12px; font-family: Verdana,Arial,sans-serif; color: white;">
            <th width="25%">Registration Id</th>
            <th width="35%"> Property Name</th>
            <th width="25%">Owner</th>
        <?php 
         if (in_array("permit_no", $groupFileds)) {
         ?>
            <th>Permit No.</th>
        <?php        
         }
        ?>
        </thead>
      </table>
      <div  style="height: 400px; overflow: auto; margin-top: 10px;">
          <table id="list-table-data" width="100%" class="scrolltable" border="0">
             <tbody>
              <?php 
                    foreach($prpData as $prp){
                      
                     ?>
                        <tr>
                            <td width="25%" align="center">
                                <?php echo $prp['PropertyItem']['property_reg_no']; ?>
                            </td>
                            <td width="35%" align="center">
                                <?php echo $prp['PropertyItem']['name']; ?>
                            </td>
                            <td width="25%" align="center">
                                <?php echo $prp['PropertyItem']['owners_name']; ?>
                            </td>
                     <?php 
                     if (in_array("permit_no", $groupFileds)) {
                     ?>
                            <td align="center">
                                 <?php echo $prp['PropertyItemDetail']['permit_no']; ?>
                            </td>
                    <?php        
                     }
                    ?>    
                        </tr>
                     <?php 
                   }
              ?>
            </tbody> 
          </table>
      </div>
 </div>
<?php    
}
else{
    echo "No Report At the Moment.";
}

?>